<!doctype html>
<html ng-app="wxModule">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/library/aui/css/aui.2.0.css" />
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/wx/css/style.css?<?=$time?>">
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="/config"></script>
    <title>丘丘谷商城</title>

    <?php
        if (!empty($css) && is_array($css)) foreach($css as $item){
            if(preg_match('/^http/i', $item)) {
                echo '<link rel="stylesheet" href="' . $item . '" />';
        } else {
            echo '<link rel="stylesheet" href="'. base_url() . ltrim($item, '/') . '?' . time() . '" />';
        }
    }

    if (!empty($js) && is_array($js)) foreach($js as $item){
        if(preg_match('/^http/i', $item)) {
            echo '<script src="' . $item . '"></script>';
        } else {
                echo '<script src="'. base_url() . ltrim($item, '/') . '"></script>';
        }
    }
    ?>
</head>
